import { T_srv, Tsrv, ifs, ts, tvs, vue } from '@/services';
import { I_cmd, T_cmd } from './command';

const tableConfig = () => {
  return [
    {
      paramName: '加药开启下限阈值（g/L）',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer001'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer026'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer055'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer055'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer068'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer081'
      },
      _XID: 'row_738'
    },
    {
      paramName: '加药开启上限阈值（g/L）',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer002'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer027'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer056'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer056'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer069'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer082'
      },
      _XID: 'row_739'
    },
    {
      paramName: '槽体积L',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer003'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer028'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer057'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer057'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer070'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer083'
      },
      _XID: 'row_740'
    },
    {
      paramName: '加药判定值（g/L）',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer004'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer029'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer058'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer058'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer071'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer084'
      },
      _XID: 'row_741'
    },
    {
      paramName: '化学品浓度（g/L）',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer005'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer030'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer059'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer059'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer072'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer085'
      },
      _XID: 'row_742'
    },
    {
      paramName: '加药泵功率（L/H）',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer006'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer031'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer060'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer060'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer073'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer086'
      },
      _XID: 'row_743'
    },
    {
      paramName: '加药时间系数',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer046'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer047'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer048'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer061'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer074'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer087'
      },
      _XID: 'row_744'
    },
    {
      paramName: '计算公式目标值(g/L)',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer007'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer032'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer061'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer062'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer075'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer088'
      },
      _XID: 'row_745'
    },
    {
      paramName: '单次加药量(L)',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer008'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer033'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer062'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer063'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer076'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer089'
      },
      _XID: 'row_746'
    },
    {
      paramName: '加药量累计值',
      type: 'text',
      editable: false,
      originalValues: {},
      chrome15: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer011'
      },
      sulfuric11: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer033'
      },
      sulfuric12: {
        value: 0,
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer043'
      },
      alkali2: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer064'
      },
      bright6: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer077'
      },
      chromeSeal20: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer090'
      },
      _XID: 'row_751'
    },
    {
      paramName: '加药量累计时间值(S)',
      type: 'text',
      editable: false,
      originalValues: {},
      chrome15: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer012'
      },
      sulfuric11: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer034'
      },
      sulfuric12: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer044'
      },
      alkali2: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer065'
      },
      bright6: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer078'
      },
      chromeSeal20: {
        value: '0.00',
        editable: false,
        originalValue: '0.00',
        code: 'myCAnalyzer091'
      },
      _XID: 'row_752'
    },
    {
      paramName: '加药泵功率系数',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer013'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer035'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer045'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer066'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer079'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer092'
      },
      _XID: 'row_747'
    },
    {
      paramName: '加药1过程值(g/L)',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer014'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer015'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer016'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer067'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer080'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer093'
      },
      _XID: 'row_748'
    },
    // // 当code值为null的时候表示该槽位无该参数
    // {
    //   paramName: '硫酸亚铁铵浓度',
    //   type: 'number',
    //   editable: true,
    //   originalValues: {},
    //   chrome15: {
    //     value: 0,
    //     editable: false,
    //     originalValue: 0,
    //     code: null
    //   },
    //   sulfuric11: {
    //     value: 0,
    //     editable: true,
    //     originalValue: 0,
    //     code: 'myCAnalyzer106'
    //   },
    //   // 硫酸阳极化12槽的硫酸亚铁铵浓度未知点位
    //   // 点位未导入系统，后续补充
    //   sulfuric12: {
    //     value: 0,
    //     editable: true,
    //     originalValue: 0,
    //     code: null
    //   },
    //   alkali2: {
    //     value: 0,
    //     editable: false,
    //     originalValue: 0,
    //     code: null
    //   },
    //   bright6: {
    //     value: 0,
    //     editable: false,
    //     originalValue: 0,
    //     code: null
    //   },
    //   chromeSeal20: {
    //     value: 0,
    //     editable: false,
    //     originalValue: 0,
    //     code: null
    //   },
    //   _XID: 'row_749'
    // },
    {
      paramName: '排废运行时间',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer107'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer108'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer109'
      },
      alkali2: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      bright6: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      chromeSeal20: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      _XID: 'row_750'
    },
    {
      paramName: '取样开始标记',
      type: 'indicator',
      editable: false,
      originalValues: {},
      chrome15: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer049'
      },
      sulfuric11: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer050'
      },
      sulfuric12: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer051'
      },
      alkali2: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer052'
      },
      bright6: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer053'
      },
      chromeSeal20: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer054'
      },
      _XID: 'row_753'
    },
    {
      paramName: 'PLC取样开始标记',
      type: 'indicator',
      editable: false,
      originalValues: {},
      chrome15: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer094'
      },
      sulfuric11: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer095'
      },
      sulfuric12: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer096'
      },
      alkali2: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer097'
      },
      bright6: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer098'
      },
      chromeSeal20: {
        value: true,
        editable: false,
        originalValue: true,
        code: 'myCAnalyzer099'
      },
      _XID: 'row_754'
    },
    {
      paramName: '铬酸/硫酸(g/L)结果1',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer017'
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer018'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer020'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer023'
      },
      bright6: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer025'
      },
      chromeSeal20: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer022'
      },
      _XID: 'row_755'
    },
    {
      paramName: '铬酸/硫酸(g/L)结果2',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      sulfuric11: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer019'
      },
      sulfuric12: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer021'
      },
      alkali2: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'myCAnalyzer024'
      },
      bright6: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      chromeSeal20: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      _XID: 'row_756'
    },
    {
      paramName: '取样前搅拌时间(S)',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'my166'
      },
      sulfuric11: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      sulfuric12: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      alkali2: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      bright6: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      chromeSeal20: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      _XID: 'row_757'
    },
    {
      paramName: '搅拌后静置时间(S)',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'my167'
      },
      sulfuric11: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      sulfuric12: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      alkali2: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      bright6: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      chromeSeal20: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      _XID: 'row_758'
    },
    {
      paramName: '取样中进行时间(S)',
      type: 'number',
      editable: true,
      originalValues: {},
      chrome15: {
        value: 0,
        editable: true,
        originalValue: 0,
        code: 'my168'
      },
      sulfuric11: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      sulfuric12: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      alkali2: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      bright6: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      chromeSeal20: {
        value: 0,
        editable: false,
        originalValue: 0,
        code: null
      },
      _XID: 'row_759'
    },
    {
      paramName: '添加方式',
      type: 'switch',
      editable: false,
      originalValues: {},
      chrome15: {
        value: true,
        editable: false,
        originalValue: true,
        code: null
      },
      sulfuric11: {
        value: true,
        editable: false,
        originalValue: true,
        code: null
      },
      sulfuric12: {
        value: true,
        editable: false,
        originalValue: true,
        code: null
      },
      alkali2: {
        value: true,
        editable: true,
        originalValue: true,
        code: 'myCAnalyzer100'
      },
      bright6: {
        value: true,
        editable: true,
        originalValue: true,
        code: 'myCAnalyzer101'
      },
      chromeSeal20: {
        value: true,
        editable: true,
        originalValue: true,
        code: 'myCAnalyzer102'
      },
      _XID: 'row_760'
    },
    {
      paramName: '状态按钮',
      type: 'switch',
      editable: false,
      originalValues: {},
      chrome15: {
        value: true,
        editable: false,
        originalValue: true,
        code: null
      },
      sulfuric11: {
        value: true,
        editable: false,
        originalValue: true,
        code: null
      },
      sulfuric12: {
        value: true,
        editable: false,
        originalValue: true,
        code: null
      },
      alkali2: {
        value: true,
        editable: true,
        originalValue: true,
        code: 'myCAnalyzer103'
      },
      bright6: {
        value: true,
        editable: true,
        originalValue: true,
        code: 'myCAnalyzer104'
      },
      chromeSeal20: {
        value: true,
        editable: true,
        originalValue: true,
        code: 'myCAnalyzer105'
      },
      _XID: 'row_761'
    }
  ];
};

export { I_cmd, T_cmd, T_srv, Tsrv, ifs, tableConfig, ts, tvs, vue };
